]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
blur-effect: Fix crash when switching to ACTOR mode
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 10 Feb 2020 14:20:51 +0000 (15:20 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 12 Feb 2020 14:02:28 +0000 (14:02 +0000)
The `clear_framebuffer()` function takes a CoglFramebuffer, not a
FramebufferData object.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991

src/shell-blur-effect.c

index 2d49ffafec65189016b2747becc4945bef6975fc..4a2f8f782fe7d3404c1001810f7a66ce728b0a91 100644 (file)
@@ -1082,7 +1082,7 @@ shell_blur_effect_set_mode (ShellBlurEffect *self,
   switch (mode)
     {
     case SHELL_BLUR_MODE_ACTOR:
-      clear_framebuffer (&self->background_fb);
+      clear_framebuffer (self->background_fb.framebuffer);
       break;
 
     case SHELL_BLUR_MODE_BACKGROUND: